import request from '@/utils/request'
import { downFile } from '@/utils/request'

export function getWorklineList(query) {
  return request({
    url: '/mes/md/workline/list',
    method: 'get',
    params: query,
  })
}

export function insertworkline(data) {
  return request({
    url: '/mes/md/workline/addWorkline',
    method: 'post',
    data: data,
    contextType:"application/json"
  })
}


export function updateWorkline(data) {
  return request({
    url: '/mes/md/workline/updateWorkline',
    method: 'post',
    data: data,
    contextType:"application/json"
  })
}


export function delWorkline(data) {
  return request({
    url: '/mes/md/workline/delWorkline',
    method: 'post',
    data: data,
    contextType:"application/json"
  })
}

export function getWorkshopList(query) {
    return request({
      url: '/mes/md/workline/getWorkshopList',
      method: 'get',
      params: query,
    })
  }
  